<template>
  <div class="container">
    <router-view></router-view>
    <div class="index">
      <Header />
      <div class="main_center">
        <div class="main-left">
          <div class="con-menu" onclick="prepareLessons">
            <div class="menu-img">
              <img src="../../static/img/book.png" alt="">
            </div>
            <div class="menu-item">
              备课
            </div>
          </div>
          <div class="con-menu">
            <div class="menu-img">
              <img src="../../static/img/shangke.png" alt="">
            </div>
            <div class="menu-item">
              上课
            </div>
          </div>
        </div>
        <div class="main-right">
          <div class="con-menu">
            <div class="menu-img">
              <img src="../../static/img/student.png" alt="">
            </div>
            <div class="menu-item">
              学生
            </div>
          </div>
          <div class="con-menu2">
            <div class="menu-img">
              <img src="../../static/img/resources.png" alt="">
            </div>
            <div class="menu-item">
              资源
            </div>
          </div>
          <div class="con-menu3">
            <div class="menu-img">
              <img src="../../static/img/wode.png" alt="">
            </div>
            <div class="menu-item">
              我的
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Header from '../components/header.vue';
export default {
  data() {
    return {};
  },
  created() {
  },
  methods: {
    prepareLessons(){
      this.$router.push("/prepareLessons");
    }
  },
  components:{Header}
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100vh;
  background: url(../../static/img/bg.png) no-repeat center;
  background-size: 100% 100%;
}
.index{
  width: 100%;
  height: 100%;
  position: relative;
  .main_center{
    width: 1720px;
    margin-top: 10px;
    .main-left{
      width: 1462px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .mr0{ margin-right: 0px;}
      .con-menu{
        width: 400px;
        height: 224px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        cursor: pointer;
        .menu-item{
          font-size: 50px;
          line-height: 60px;
          color: #222222;
          opacity: 1;
        }
      }
    }
    .main-right{
      width: 281px;
      margin: 24px auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .con-menu{
        width: 274px;
        height: 194px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .menu-item{
          font-size: 40px;
          line-height: 48px;
          color: #222222;
          opacity: 1;
        }
      }

      .con-menu2{
        width: 280px;
        height: 194px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .menu-item{
          font-size: 40px;
          line-height: 48px;
          color: #222222;
          opacity: 1;
        }
      }
      .con-menu3{
        width: 220px;
        height: 194px;
        background: #FFFFFF;
        opacity: 1;
        border-radius: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .menu-item{
          font-size: 40px;
          line-height: 48px;
          color: #222222;
          opacity: 1;
        }
      }
    }
  }
}
</style>
